﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Addaddress.aspx.cs" Inherits="Liguo.Store.Addaddress" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>change address</title>
    <script src="../js/artDialog/artDialog.js" ></script>
    <script src="../js/artDialog/plugins/iframeTools.js"></script>
 <link rel="stylesheet" href="../js/artDialog/skins/simple.css" />
    <script>
        //document.getElementById('reload').onclick = 
            function okkk() {
            art.dialog.data('iframeTools', '我知道你刷新了页面～哈哈'); // plugin.iframe.html可以收到
            var win = art.dialog.open.origin;//来源页面
            // 如果父页面重载或者关闭其子对话框全部会关闭
            win.location.reload();
            return false;
        };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h3>新增地址</h3>
        <ul>
            <li>
                <span>
                    <label>选择宿舍楼：</label>
                </span><br />
                <asp:DropDownList ID="choiceCollege" runat="server" OnSelectedIndexChanged="choiceCollege_SelectedIndexChanged"
                    AutoPostBack="true">
                    <asp:ListItem Value="0">仲英书院</asp:ListItem>
                    <asp:ListItem Value="1">励志书院</asp:ListItem>
                    <asp:ListItem Value="2">南洋书院</asp:ListItem>
                    <asp:ListItem Value="3">彭康书院</asp:ListItem>
                    <asp:ListItem Value="4">崇实书院</asp:ListItem>
                    <asp:ListItem Value="5">文治书院</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="choiceBuilding" runat="server"></asp:DropDownList><br />
            </li>
            <li>
                <span>
                    <label>收货人姓名：</label>
                </span>
                <asp:TextBox ID="c_name"  runat ="server"></asp:TextBox><br />
            </li>
            <li>
                <span>
                    <label>电话：</label><br />
                    <asp:TextBox ID="c_phoneNum" runat ="server"></asp:TextBox>
                </span>
            </li>
            <li>
                <span>
                    <label>详细地址：</label><br />
                    <asp:TextBox ID="detailAddress" runat ="server" MaxLength="25" Rows="5" TextMode="MultiLine" ></asp:TextBox>
                </span>
            </li>
        </ul>
        <div>
            <input  type="hidden" id="index" value ="nihao"/>
            <script>
                var val = art.dialog.data('test');
                document.getElementById('index').value = val;

    </script>
        </div>
        <div>
            <span>
                <asp:Button ID="saveChange" runat="server" Text="保存修改" OnClick="saveChange_Click" />
                <asp:Button ID="cancel" runat ="server" Text="取消" OnClick="cancel_Click" style="height: 21px" />
            </span>
        </div>
        
    </div>
    </form>
</body>
</html>
